package iceportal1

class SystemController {

   //static allowedMethods = [save: "POST", update: "POST", delete: "POST"]

    def index = {
    	if (session.type == "System") {
    		redirect(action: "main", params: params)
    		return
    	}
        session.type="System"
        session.systempath="system"
        redirect(controller: "login", action: "", params: params)
    }
    def main = {}
}
